﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="account_Register" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>注册 - Noap.新闻网</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="../plugins/iCheck/square/blue.css">
    <link rel="stylesheet" href="../dist/css/site.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition register-page">
<div class="register-box">
    <div class="register-logo">
        <a href="Register.aspx"><b>Noap.</b>新闻网</a>
    </div>

    <div class="register-box-body">
        <p class="login-box-msg">加入我们</p>
    
        <form id="form1" runat="server">
            <div class="form-group has-feedback">
                <asp:TextBox ID="TextBox1" CssClass="form-control" placeholder="你的姓名"  runat="server"></asp:TextBox>
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入用户名" ControlToValidate="TextBox1" ForeColor="#a94442"></asp:RequiredFieldValidator>
            </div>
            <div class="form-group has-feedback">
                <asp:TextBox ID="TextBox2" CssClass="form-control" placeholder="邮箱"  runat="server"></asp:TextBox>
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                <asp:Label ID="Label1" CssClass="text-danger" runat="server"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入邮箱" ControlToValidate="TextBox2" ForeColor="#a94442"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" CssClass="pull-right" runat="server" ErrorMessage="输入的邮箱格式不正确" ControlToValidate="TextBox2" ForeColor="#a94442" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </div>
            <div class="form-group has-feedback">
                <asp:TextBox ID="TextBox3" CssClass="form-control" placeholder="密码" TextMode="Password" runat="server"></asp:TextBox>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入密码" ControlToValidate="TextBox3" ForeColor="#a94442"></asp:RequiredFieldValidator>
            </div>
            <div class="form-group has-feedback">
                <asp:TextBox ID="TextBox4" CssClass="form-control" placeholder="再输入一遍密码" TextMode="Password" runat="server"></asp:TextBox>
                <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
                <asp:Label ID="Label3" CssClass="text-success" runat="server"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="再输入一遍密码" ControlToValidate="TextBox4" ForeColor="#a94442"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" ForeColor="#a94442" CssClass="pull-right" runat="server" ErrorMessage="两次密码输入不一致" ControlToCompare="TextBox3" ControlToValidate="TextBox4"></asp:CompareValidator>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label>
                            <asp:TextBox ID="TextBox5" type="checkbox" runat="server" checked></asp:TextBox> 我同意 <a href="#">这些条款</a>
                        </label><br/>
                        <asp:Label ID="Label2" CssClass="text-danger" runat="server"></asp:Label>
                    </div>
                </div>
                <div class="col-xs-4">
                    <asp:Button ID="Button1" runat="server" Text="注册" CssClass="btn btn-primary btn-block btn-flat" OnClick="register" />
                </div>
            </div>
        </form>
        <a href="Login.aspx" class="text-center">登入 - 我已是会员</a>
    </div>
</div>
<!-- /.register-box -->

<!-- jQuery 2.2.3 -->
<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="../plugins/iCheck/icheck.min.js"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>

